home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: Philippe Verdy <100105.3120@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Help : Huge Integer Variables ?
- Date: 30 Mar 1996 01:29:29 GMT
- Organization: CompuServe Incorporated
- Message-ID: <4ji2pp$eu0@dub-news-svc-3.compuserve.com>
- NNTP-Posting-Host: hd75-001.compuserve.com
-
- "Anwar A. Berrouayel" <Anwar@uh.edu> s'Θcrit :
- > Hello,
- >
- > I need to use Huge Integers ( 8 Bytes or More)
- > The Bigger The Better.
- >
- > Is it possible with C++ or any other programming Lang. ?
- >
- > Thank You
- You can use the STL class in <bcd.h> for huge packed-BCD
- integers of any length (BCD is a good way to simply print
- its value in decimal notation, without requiring very complex
- and time-consuming divisions on very long integers.
- Under MS-VC++, you've got the __int64 datatype.
- Within the Sybase db-library, you'll find the DBMONEY
- type (internally a 64 bits integers holding hundredths of cents
- which is computable thru thd dbmnyXXX() functions.
- You can also write your own class with its arithmetic to suport
- these numbers.
-